home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_escape.swf / scripts / DefineSprite_148_game_world_objects_U#doorRed / frame_1 / DoAction.as
Text File  |  2007-01-15  |  697b  |  29 lines

  1. _rotation = var1;
  2. this.bar1._width = var2;
  3. this.bar2._width = var2;
  4. this.bar1._height = var3 / 2;
  5. this.bar2._height = var3 / 2;
  6. this.bar1._y = - var3 / 4;
  7. this.bar2._y = var3 / 4;
  8. this.bar1._width = var2;
  9. this.bar2._width = var2;
  10. this.marker1._y = - var3 / 2;
  11. this.marker2._y = var3 / 2;
  12. this.marker1._width = var2;
  13. this.marker2._width = var2;
  14. this.onEnterFrame = function()
  15. {
  16.    var _loc1_ = this;
  17.    if(_root.game.paused == false)
  18.    {
  19.       if(_root.game.ship.keyRed == true)
  20.       {
  21.          if(_loc1_.bar1._y > - var3 / 4 * 3 && _loc1_.bar2._y < var3 / 4 * 3)
  22.          {
  23.             _loc1_.bar1._y -= 6;
  24.             _loc1_.bar2._y += 6;
  25.          }
  26.       }
  27.    }
  28. };
  29.